<?php
$num = $_GET["num"];
$id = $_GET["id"];
$goods = mysqli_connect("localhost","root","root","goods");
$res = mysqli_query($goods,"update goodsinfo set num = {$num} where id = {$id}");
#update user set name = “cheng” , age = 88  where id = 1;
echo $res;
?>